package com.xjtu.se.homework.ops.result.service.impl;

import com.xjtu.se.homework.ops.result.service.ResultService;
import com.xjtu.se.homework.ops.result.dto.SearchDto;
import com.xjtu.se.homework.ops.result.bean.ResultContent;
import com.xjtu.se.homework.ops.result.dao.ResultDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.ArrayList;

@Service
@Transactional
public class ResultServiceImpl implements ResultService {

    @Resource
    private ResultDao dao;

    @Override
    public ArrayList<ResultContent> getContent(SearchDto dto) {
        return dao.findContent(dto);
    }
}
